/* rwbr004.p - Work Centers Browse UI                                       */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                      */
/* All rights reserved worldwide.  This is an unpublished work.             */
/* $Revision: 1.11 $    */
/*V8:ConvertMode=NoConvert                                                  */
/********************************** History *********************************
 *    Revision: 8.5      Created: 06/19/97    By: B. Pedersen    *J1TF*
 *    Revision: 8.5     Modified: 09/26/97    By: B. Pedersen    *J20C*
 *    Revision: 9.0     Modified: 01/11/99    By: Jean Miller    *M04S*
 *    Revision: 8.5     Modified: 01/31/99    By: Doug Norton    *M071*
 *    Revision: 9.0     Modified: 03/15/99    By: Mark Smith     *M0BF*
 *    Revision: 9.1     Modified: 08/15/00    By: Mark Brown     *N0KP*
 * $Revision: 1.11 $    BY: Jean Miller          DATE: 04/05/02  ECO: *P044*
 ****************************************************************************/

{mfdeclre.i}

&SCOPED-DEFINE BR-TITLE "Work Centers"

&SCOPED-DEFINE BR-NAME rw004
&SCOPED-DEFINE Q-DRAG-BACK-COL 1

&SCOPED-DEFINE Q-FIRST-TABLE wc_mstr
&SCOPED-DEFINE Q-FIRST-FIELD-LIST (wc_wkctr wc_mch wc_desc wc_dept wc_mch_op wc_queue wc_wait wc_setup_men wc_men_mch)
&SCOPED-DEFINE Q-NUM-TABLES 1

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-1 b-1.wc_wkctr
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-1 wc_mstr.wc_wkctr
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-1 tt-wc_wkctr
&SCOPED-DEFINE BR-K-COL-LABEL-1 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-1 "Work Ctr"
&SCOPED-DEFINE BR-FIELD-TYPE-1 character
&SCOPED-DEFINE BR-FIELD-FRMT-1 FORMAT "x(8)"
&SCOPED-DEFINE BR-FIELD-WIDTH-1 9

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-2 b-1.wc_mch
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-2 wc_mstr.wc_mch
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-2 tt-wc_mch
&SCOPED-DEFINE BR-K-COL-LABEL-2 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-2 "Machine"
&SCOPED-DEFINE BR-FIELD-TYPE-2 character
&SCOPED-DEFINE BR-FIELD-FRMT-2 FORMAT "x(8)"
&SCOPED-DEFINE BR-FIELD-WIDTH-2 9

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-3 b-1.wc_desc
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-3 wc_mstr.wc_desc
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-3 tt-wc_desc
&SCOPED-DEFINE BR-K-COL-LABEL-3 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-3 "Description"
&SCOPED-DEFINE BR-FIELD-TYPE-3 character
&SCOPED-DEFINE BR-FIELD-FRMT-3 FORMAT "x(24)"
&SCOPED-DEFINE BR-FIELD-WIDTH-3 25

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-4 b-1.wc_dept
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-4 wc_mstr.wc_dept
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-4 tt-wc_dept
&SCOPED-DEFINE BR-K-COL-LABEL-4 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-4 "Dept"
&SCOPED-DEFINE BR-FIELD-TYPE-4 character
&SCOPED-DEFINE BR-FIELD-FRMT-4 FORMAT "x(8)"
&SCOPED-DEFINE BR-FIELD-WIDTH-4 9

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-5 b-1.wc_mch_op
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-5 wc_mstr.wc_mch_op
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-5 tt-wc_mch_op
&SCOPED-DEFINE BR-K-COL-LABEL-5 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-5 "Mach/Op"
&SCOPED-DEFINE BR-FIELD-TYPE-5 integer
&SCOPED-DEFINE BR-FIELD-FRMT-5 FORMAT ">>9"
&SCOPED-DEFINE BR-FIELD-WIDTH-5 8

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-6 b-1.wc_queue
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-6 wc_mstr.wc_queue
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-6 tt-wc_queue
&SCOPED-DEFINE BR-K-COL-LABEL-6 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-6 "Queue Time"
&SCOPED-DEFINE BR-FIELD-TYPE-6 decimal
&SCOPED-DEFINE BR-FIELD-FRMT-6 FORMAT ">,>>9.9<<"
&SCOPED-DEFINE BR-FIELD-WIDTH-6 11

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-7 b-1.wc_wait
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-7 wc_mstr.wc_wait
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-7 tt-wc_wait
&SCOPED-DEFINE BR-K-COL-LABEL-7 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-7 "Wait Time"
&SCOPED-DEFINE BR-FIELD-TYPE-7 decimal
&SCOPED-DEFINE BR-FIELD-FRMT-7 FORMAT ">,>>9.9<<"
&SCOPED-DEFINE BR-FIELD-WIDTH-7 10

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-8 b-1.wc_setup_men
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-8 wc_mstr.wc_setup_men
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-8 tt-wc_setup_men
&SCOPED-DEFINE BR-K-COL-LABEL-8 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-8 "Setup Crew"
&SCOPED-DEFINE BR-FIELD-TYPE-8 decimal
&SCOPED-DEFINE BR-FIELD-FRMT-8 FORMAT "->>,>>9.99"
&SCOPED-DEFINE BR-FIELD-WIDTH-8 11

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-9 b-1.wc_men_mch
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-9 wc_mstr.wc_men_mch
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-9 tt-wc_men_mch
&SCOPED-DEFINE BR-K-COL-LABEL-9 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-9 "Run Crew"
&SCOPED-DEFINE BR-FIELD-TYPE-9 decimal
&SCOPED-DEFINE BR-FIELD-FRMT-9 FORMAT ">>9.999"
&SCOPED-DEFINE BR-FIELD-WIDTH-9 9

&SCOPED-DEFINE Q-NUM-FILT-VALS 9
&SCOPED-DEFINE BR-MAX-FIELD-WIDTH 25
&SCOPED-DEFINE BR-BROWSE-WIDTH 101
&SCOPED-DEFINE WHERE-CLAUSE
&SCOPED-DEFINE BR-INDEXED-FIELDS 1,3,4

{wbbr01.i}
if c-application-mode <> 'WEB' then do:
   {browse.i}
end.
